package com.buer.storage.service;


import com.buer.storage.dto.CorderDto;
import com.buer.storage.dto.CorderStorageDto;
import com.buer.storage.dto.CorderdetailsDto;
import com.buer.storage.dto.StockDto;
import com.buer.storage.entity.Corder;
import com.buer.storage.entity.Corderdetails;
import com.buer.storage.entity.Stockdetails;
import com.github.pagehelper.PageInfo;

import java.util.List;
import java.util.Map;

public interface CorderService {
    //增加入库
    int insertCorder(CorderStorageDto corderStorageDto);

    PageInfo<Corder> selectByAll(Map<String, Object> map);

    //查询入库表
    List<CorderStorageDto> findCorderAllById(int checkId);

    //查询所有盘点单
    List<CorderDto> findCorderAll();

    //根据盘点单ID删除所有盘点信息
    int deleteCorderAllById(Integer checkId);

    //更新调拨商品
    int updateCorderdetails(CorderStorageDto corderStorageDto);

    List<StockDto> findStockByWarehouseId(Integer warehouseId);

    List<StockDto> findStockByProdArea(Integer prodArea,Integer warehouseId);

    List<StockDto> findStockByProdDepart(Integer prodDepart,Integer prodArea,Integer warehouseId);

    PageInfo<StockDto> searchStockAll(Map<String, Object> map);

    PageInfo<CorderDto> getCord(Map<String, Object> map);

    PageInfo<Corderdetails> getCorderdetails(Map<String, Object> map);

    List<CorderDto> findCorderByStatus(Integer checkStatus);

    List<Stockdetails> findStockdetailsByCheckid(Integer checkId);

    int findCountByStatus(Integer checkStatus);
}
